package com.weimob.mcloud.wechatwork.customer.mq.handler.externaluser;

import com.weimob.mcloud.wechatwork.customer.domain.ExternalUserChangeInfo;
import com.weimob.mcloud.wechatwork.customer.service.user.enums.CustomerLoseTypeEnum;
import com.weimob.soa.common.response.SoaResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create Time: 2021年01月18日 16:11
 *
 * @author maosheng.li
 **/
@Slf4j
@Service
public class DelCorpFollowUserHandler implements CorpExternalUserHandler {

    @Autowired
    private DelCorpExternaluserHandler delCorpExternaluserHandler;

    @Override
    public SoaResponse<?, ?> handleCorpExternalUser(ExternalUserChangeInfo externalUserChangeInfo) {
        externalUserChangeInfo.setLoseType(CustomerLoseTypeEnum.CUSTOMER_DEL_EMPLOYEE.getCode());
        return delCorpExternaluserHandler.handleCorpExternalUser(externalUserChangeInfo);
    }


}
